home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Linux Cubed Series 8: LINUX Games
/
Linux Cubed Series 8 - LINUX Games.iso
/
games
/
video
/
thrust-s.53
/
thrust-s
/
thrust
/
INSTALL
< prev
next >
Wrap
Text File
|
1995-11-05
|
2KB
|
47 lines
If you have the binary distribution, skip to 3.
1. What you need to build and install the program
- You will need a make that can handle text transforming functions,
e.g the GNU `make' utility.
- You will also need svgalib 1.2.8 (or later) to compile the sources. To run
a binary there is no need for a bleeding edge version of svgalib. You can
get svgalib by ftp from sunsite.unc.edu in the directory
/pub/Linux/libs/graphics. As usual, you can just as easily get it from one
of numerous mirrors. Actually you can use older versions of svgalib by
uncommenting a small fix in the beginning of `./src/thrust.h' that defines
the scancode of the letter p.
- Root permissions so that svgalib can open the graphics display.
2. Build the program
- In the directory that this file is in, type `make'. This will build the
program `thrust'.
- If you are not satisfied with the keys, take a look at the function
whatkeys() in the file `src/thrust.c'. Be sure to use svgalib 1.2.8 as
this version of svgalib defines more scancodes than previous versions.
- At the top of the file `src/thrust.h' the speed of the game can be
changed. You can fiddle with this setting if you are not satisfied
with the feel of the steering.
3. Install the program
- Type `su' and enter root's password.
- Then as root, type `make install'. This will copy the program `thrust'
to `/usr/local/games' and it will also set the setuid flag as is required
by all svgalib programs.
Security concerns
- All programs that use svgalib must be started as root. Either root starts
the program, or the program is suid root so that everybody can run it as
if they were root. A normal svgalib application give up its root priviliges
right after the graphics have been initilized. Root priviliges are normally
given up within the call to vga_init().
However, `thrust' needs root priviliges after this in order to write a
highscore file in `/var/games/thrust.highscore'. If you have security
concerns that are stronger than your need for a highscore file, then take
a look at the comment in the beginning of the main() function at the bottom
of the file `src/thrust.c'.